import request from "@/utils/request";

// 流水管理
export function getWaterList(data) {
  return request({
    url: "/order/page/pay",
    method: "post",
    data: data,
  });
}

// 流水详情
export function WaterDetail(query) {
  return request({
    url: "/order/pay/info",
    method: "get",
    params: query,
  });
}

// 订单列表
export function getOrderList(data) {
  return request({
    url: "/order/page",
    method: "post",
    data: data,
  });
}

// 根据订单标识查询订单
export function getOrderId(query) {
  return request({
    url: "/order/get/byOrderId",
    method: "get",
    params: query,
  });
}

// 录单
export function getRecording(data) {
  return request({
    url: "/order/recording",
    method: "post",
    data: data,
  });
}

// 核销记录
export function getwriteOff(data) {
  return request({
    url: "/order/total/writeOff",
    method: "post",
    data: data,
  });
}

// 异常操作记录
export function getErrAction(data) {
  return request({
    url: "/order/total/pay/err",
    method: "post",
    data: data,
  });
}

// 跨店消费统计
export function getCrossStore(data) {
  return request({
    url: "/order/total/pay/store",
    method: "post",
    data: data,
  });
}

// 查询管理门店
export function getStorelists(query) {
  return request({
    url: "/system/dept/store",
    method: "get",
    params: query,
  });
}

export function getAllStorelists(data) {
  return request({
    url: "/store/store/all",
    method: "get",
    data: data,
  });
}

// 日合计报表
export function getTotalDay(data) {
  return request({
    url: "/order/total/day",
    method: "post",
    data: data,
  });
}

// 查询支付方式
export function getPayType(data) {
  return request({
    url: "/order/payType",
    method: "get",
    data: data,
  });
}